/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

/* 主布局样式 */
.main-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 120px);
}

/* 左侧菜单样式 */
.sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #3498db;
    color: white;
}

/* 右侧内容区域样式 */
.content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.content-section {
    height: 100%;
}

.content-section.hidden {
    display: none;
}

.content h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 工具栏样式 */
.toolbar {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.toolbar button:hover {
    background-color: #2980b9;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-ACTIVE {
    background-color: #d4edda;
    color: #155724;
}

.status-INACTIVE {
    background-color: #f8d7da;
    color: #721c24;
}

.status-DRAFT {
    background-color: #fff3cd;
    color: #856404;
}

.status-SUBMITTED {
    background-color: #cce5ff;
    color: #004085;
}

.status-APPROVED {
    background-color: #d4edda;
    color: #155724;
}

.status-REJECTED {
    background-color: #f8d7da;
    color: #721c24;
}

.status-CLOSED {
    background-color: #e2e3e5;
    color: #383d41;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: #777;
    font-size: 14px;
}

/* 新增样式 */
#order-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

#order-details h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    width: 150px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        flex: 0 0 auto;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}